<include file="../Public/header" />
<script data-main="__PUBLIC__/admin/js/page/admin/content/addtag" src="__PUBLIC__/admin/js/lib/requirejs/require.js"></script>
</head>

<body>
  <div class="page">
    <div class="page-hd">
      <h1>
        <eq name="findTag">编辑标签 <else />添加标签</eq>
      </h1>
    </div>

    <div class="form">
      <form method="post" action="{:URL('admin/Content/createTag')}" id="J_form" >
        <input type="hidden" name="tag_id" value="{$tag_id}" />
        <eq name="type" value="edit">
          <input type="hidden" name="ad_id" value="{$ad_id}">
        </eq>
        <dl class="kv">
          <dt>
            <label>标签名称：</label>
          </dt>
          <dd>
            <input class="input-text" type="text" name="tag_name" required value="{$tag_name}" id="tag_name">
            <span class="required">*</span>
            <div class="kv-error"></div>
          </dd>
        </dl>
        <dl class="kv">
          <dt>
            <label>标签分类：</label>
          </dt>
          <dd>
            <select name="tag_alias">
              <option value="身份" <eq name="tag_alias" value="身份">selected</eq>>身份</option>
              <option value="职业" <eq name="tag_alias" value="职业">selected</eq>>职业</option>
              <option value="兴趣" <eq name="tag_alias" value="兴趣">selected</eq>>兴趣</option>
            </select>
          </dd>
        </dl>
        <div class="actions">
          <input class="btn btn-y" type="submit" value="{$Think.lang.OK}" />
          <input class="btn btn-n" type="button" value="{$Think.lang.return}" onclick="javascript:location.href='{:URL('admin/Content/tag')}'" />
        </div>
      </form>
    </div>

  </div>
</body>

</html>
